package com.backend.conmon.response;


/**
 * @author wangweir
 */
public class CommonResponseEnum {

  public static CommonResponse2 SUCCESS() {
    return new CommonResponse2(ICommonResponse.SUCCESS_CODE,
        "操作成功");
  }

  public static CommonResponse2 FAIL() {
    return new CommonResponse2(ICommonResponse.FAIL_CODE, "未知错误");
  }

  public static CommonResponse2 SIGN_FAIL() {
    return new CommonResponse2(ICommonResponse.SIGN_FAIL,
        "验签不成功，请确认");
  }

  public static CommonResponse2 INVALIDA_CALL() {
    return new CommonResponse2(
        ICommonResponse.INVALIDA_CALL, "非法的请求");
  }

  public static CommonResponse2 INVALID_IDENTITY() {
    return new CommonResponse2(ICommonResponse.INVALID_IDENTIFY, "请求身份不合法");
  }

  public static CommonResponse2 LIMIT_CALL() {
    return new CommonResponse2(
        ICommonResponse.HTTP_RATE_LIMIT, "操作太频繁，请稍后再试！");
  }

}
